@space: 24px;

.modalDefault() {
  :global {
    .ant-modal-content {
      // background-color: #222629 !important;
      .ant-modal-header {
        padding-top: 18px;
        padding-bottom: 0;
        // background-color: #222629 !important;
        border-bottom: 0;
      }

      .ant-modal-body {
        padding: 5px @space 0 @space;
      }

      .ant-modal-footer {
        padding: @space;
        padding-top: 0;
        border-top: 0;
      }

      .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {
        margin-left: 16px;
      }

      .ant-btn {
        border-radius: 5px;
      }

      // .ant-btn-primary {
      //   background: #18a0fb;
      //   border-color: #18a0fb;
      // }
    }
    .ant-select {
      font-size: 12px;
    }
    .ant-input {
      font-size: 12px;
    }
  }
}

.modal {
  .modalDefault();

  .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 600px;
    margin-top: 40px;
    padding-bottom: 24px;
    overflow: hidden;
    .preview {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border: 1px solid rgb(68, 68, 68);
      border-radius: 4px;
      .preview_title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 36px;
        padding-right: 14px;
        padding-left: 22px;
      }
      .preview_icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        font-size: 16px;
        cursor: pointer;
      }
      .preview_file {
        position: relative;
        flex: 1;
      }
      .file_box {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        flex-flow: wrap;
        width: 100%;
        height: 100%;
        pointer-events: none;
        > div {
          display: inline-block;
          width: 33.3%;
          height: 50px;
          color: rgba(255, 255, 255, 0.12);
          font-size: 12px;
          line-height: 50px;
          transform: rotateZ(-45deg);
        }
      }
    }
    .video {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
  }
}
